package com.pearadmin.pro.modules.paper.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.pearadmin.pro.modules.paper.dto.request.UserExamReqDTO;
import com.pearadmin.pro.modules.paper.dto.response.UserExamRespDTO;
import com.pearadmin.pro.modules.paper.entity.UserExam;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 考试记录Mapper
 * @author ZhouXingYun
 * @date 2022/5/24 18:01
 */
@Mapper
public interface UserExamMapper extends BaseMapper<UserExam> {

    /**
     * 我的考试分页
     * @param page
     * @param query
     * @return
     */
    IPage<UserExamRespDTO> paging(Page page, @Param("query") UserExamReqDTO query);

    void deleteByExam(@Param("ids") List<String> ids);
}
